-- GENERATED SPELL FOR [Hate Shrieker] --


function spell0_8541(pUnit, Event) --@Banshee Curse,n/a--
pUnit:FullCastSpellOnTarget(5884,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8541', 14000, 1)
end

function spell1_8541(pUnit, Event) --@Deafening Screech,n/a--
pUnit:FullCastSpellOnTarget(3589,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8541', 8293, 1)
end

function Sorts_8541(pUnit, Event)
local choix_sorts_8541 = math.random(0, 1)
if choix_sorts_8541 == 0 then
pUnit:RegisterEvent('spell0_8541', 1, 1)
end
if choix_sorts_8541 == 1 then
pUnit:RegisterEvent('spell1_8541', 1, 1)
end
end

function mob8541_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8541', math.random(1500, 3000), 1)
end

function mob8541_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8541_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8541_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8541, 1, 'mob8541_Action')
RegisterUnitEvent(8541, 2, 'mob8541_Leave')
RegisterUnitEvent(8541, 3, 'mob8541_Kill')
RegisterUnitEvent(8541, 4, 'mob8541_Die')
